package com.hand.test.service.impl;/**
 * @author Estelle@앙수청
 * @date 2019/7/20 10:14
 */

import com.hand.test.domain.Storehouse;
import com.hand.test.mapper.StorehouseMapper;
import com.hand.test.service.StorehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  @author Estelle@앙수청
 *  @date 2019/7/20 10:14
 */
@Service
public class StorehouseServiceImpl implements StorehouseService {

    @Autowired
    private StorehouseMapper storehouseMapper;

    @Override
    public List<Storehouse> queryAllStorehouse() {
        return storehouseMapper.queryAllStorehouse();
    }

    @Override
    public Storehouse queryStorehouseById(Integer id) {
        return storehouseMapper.queryStorehouseById(id);
    }

    @Override
    public Integer addStorehouse(Storehouse storehouse) {
        return storehouseMapper.addStorehouse(storehouse);
    }

    @Override
    public void updateStorehouse(Storehouse storehouse) {
        storehouseMapper.updateStorehouse(storehouse);
    }

    @Override
    public void deleteStorehouse(Integer id) {
        storehouseMapper.deleteStorehouse(id);
    }
}
